#ifndef __LED_H
#define __LED_H
#include "stm32f4xx.h"

struct led_selc
{
    uint32_t            RCC_Periph_GPIOX;          //开启对应GPIO时钟
    GPIO_TypeDef*       GPIOx;                     //对应GPIOx                         
    uint32_t            GPIO_Pin;                  //传入对应的GPIO引脚
    GPIOMode_TypeDef    GPIO_Mode;                 //输入输出
    GPIOOType_TypeDef   GPIO_OType;                //推挽开漏
    GPIOPuPd_TypeDef    GPIO_PuPd;                 //上拉下拉
    BitAction           led_on;                    //led开灯函数
    BitAction           led_off;                   //led关灯函数 
};

#endif
